package com.gpzx.zx.module.home.frame.presenter

import android.content.Context
import com.wkq.base.frame.mosby.MvpBasePresenter
import com.gpzx.zx.module.home.frame.view.InformationListView
import com.gpzx.zx.utlis.QklDbUtlis

/**
 *
 * 作者:吴奎庆
 *
 * 时间:2020/6/11
 *
 * 用途:
 */


class InfomationListPresenter : MvpBasePresenter<InformationListView> (){

    fun getData(context: Context, type: String?) {
        var db= QklDbUtlis(context)
       var list= db.getNewsByType(type)
        if (view!=null)view.showData( list)

    }

}